<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex benben-position-layout flex flex-wrap align-center myCoins_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between flex-sub myCoins_fd0_0'      >
            <view   class='flex flex-wrap align-center myCoins_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  myCoins_fd0_0_c0_c0'    >&#xE794;</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-center'      >
        <text class='myCoins_fd0_0_c1_c0'  >{{$t('我的金币')}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-end myCoins_fd0_0_c0' :style="{'margin-right':`${ appSystemIdentification == 'Wechat' ?  '30%':''}`}"  @tap="popupShow1691139688487=true"   >
        <image class='myCoins_fd0_0_c2_c0'  mode="aspectFit"  :src='STATIC_URL+"428.png"'></image>
</view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout"    >
            <view   class='flex flex-direction align-stretch myCoins_fd1_0'      >
            <view   class='flex flex-direction flex-wrap align-center myCoins_fd1_0_c0'      >
        <text class='myCoins_fd1_0_c0_c0'  >{{dataUserInfo.score}}</text>
<text class='myCoins_fd1_0_c0_c1'  >{{$t('总金币')}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-center myCoins_fd1_0_c1'      >
        <text class='myCoins_fd1_0_c1_c0'  >{{$t('看广告')}}</text>
</view>
</view>
    <view   class='flex flex-direction align-stretch myCoins_fd1_1'      >
            <view   class='flex flex-direction align-stretch myCoins_fd1_1_c0'      >
            <view   class='flex flex-wrap align-center myCoins_fd1_1_c0_c0'      >
        <text class='myCoins_fd1_1_c0_c0_c0'  >{{$t('近30天记录')}}</text>
    <view   class='flex flex-wrap align-center myCoins_fd1_1_c0_c0_c1'   @tap="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/jf/inteDetails/inteDetails`"   >
        <text class='myCoins_fd1_1_c0_c0_c1_c0'  >{{$t('查看全部')}}</text>
</view>
</view>
    <template v-for = '(item,key0) in dataList'>
    <view   class='flex flex-wrap align-center myCoins_fd1_1_c0_c0'       :key='key0'>
            <view   class='flex flex-direction align-stretch flex-sub myCoins_fd1_1_c0_c1_c0'      >
        <text class='myCoins_fd1_1_c0_c1_c0_c0'  >{{item.remark}}</text>
<text class='myCoins_fd1_1_c0_c1_c0_c1'  >{{item.create_time}}</text>
</view>
    <view   class='flex flex-wrap align-center myCoins_fd1_1_c0_c1_c1'      >
        <text     v-if= " item.money_type=='1'"  >{{$t('+')}}</text>
<text     v-if= " item.money_type=='1'"  >{{item.change_score}}</text><text class='myCoins_fd1_1_c0_c1_c1_c1_1'    v-if= " item.money_type!='1'"  >{{item.change_score}}</text>
</view>
</view>
    </template>
    <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
<benben-popup v-model="popupShow1691139688487" :mask="true" :mask-close-able="false"  mode='center' >
    <!---富文本弹窗flex布局开始-->
 <view class="flex flex-direction flex-wrap align-center benben-flex-layout"    >
            <view   class='flex flex-direction flex-wrap align-center myCoins_fd2_0'      >
        <text class='myCoins_fd2_0_c0'  >{{$t('金币规则')}}</text>
    
    <scroll-view  class='myCoins_fd2_0_c1'  :scroll-y='true'  >
        <view class='flex flex-direction align-stretch benben-scroll flex'    >
                    <jyf-parser class='myCoins_fd2_0_c1_c0'  :html="dataMessage.content | richTextFormat"  >
        </jyf-parser>
</view>
    </scroll-view>
    
</view>
<image class='myCoins_fd2_1'  mode="aspectFit"  :src='STATIC_URL+"190.png"' @tap.stop="popupShow1691139688487=false" ></image>
</view>
        
<!---富文本弹窗flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"popupShow1691139688487":false,"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"dataUserInfo":{"invite_code":"","address":"","address_code":"","hobby":"","tags":"","id":"","userlevel_id":"","mobile":"","real_name":"","avatar":"","account":"","email":"","birthday":"","gender":"","create_time":"","user_money":"","freeze_money":"","total_consumption_money":"","score":"","_mobile":"","coupon":"","collection_count":"","browse_count":"","total_money":"","certified":"","nickname":"","is_pay_password":"","follow_count":""},"dataList":[],"dataMessage":{"content":""}};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
                  /**
     * @returns 
      * Android       安卓
      * IOS       苹果
      * Web       H5 或 pc
      * Wechat       微信小程序
      * Alipay       支付宝小程序
      * Baidu       百度小程序
      * ByteBounce       抖音小程序
      * 360       360小程序
      * FastApp       快应用
    */
    appSystemIdentification() {
      return this.$store.state.appSystemIdentification
    }
		},
		watch:{},
		onLoad(options){
            this.getMessageFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            this.getUserinfoFunc()
this.getListFunc()
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.getUserinfoFunc()
this.getListFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //获取个人信息
                async getUserinfoFunc(){
                        //请求方法
    //数据验证
    
  let datadataUserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {
    
  });
  
  if (datadataUserInfo.data.code != 1) {
    this.$message.info(datadataUserInfo.data.msg);
    return
  } 
  let infodataUserInfo = datadataUserInfo.data;
  this.dataUserInfo = infodataUserInfo.data
  
                },
                //获取积分明细
                 getListFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post64145f67a43bf;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {type:'0'}
                this.listData = [];
                this.dataList = this.listData;
                this.pagingListToggle();
                
                },
                //获取签到规则
                async getMessageFunc(){
                        //请求方法
    //数据验证
    
  let datadataMessage = await this.$api.post(global.apiUrls.post64156a0fd7451, {
    
  });
  
  if (datadataMessage.data.code != 1) {
    this.$message.info(datadataMessage.data.msg);
    return
  } 
  let infodataMessage = datadataMessage.data;
  this.dataMessage = infodataMessage.data
  
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:url(image-path('429.png')) no-repeat;background-size: 100% auto;
        }
    .myCoins_flex_0{
        background:url(image-path('429.png')) no-repeat;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .myCoins_fd0_0_c2_c0{
        width:36rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .myCoins_fd0_0_c1_c0{
        font-size:36rpx;font-weight:700;color:var(--benbenFontColor3);line-height:88rpx;
    }
    .myCoins_fd0_0_c0_c0{
        font-size:36rpx;color:var(--benbenFontColor3);
    }
    .myCoins_fd0_0_c0{
        width:120rpx;
    }
    .myCoins_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;
    }
    .myCoins_fd1_1_c0_c1_c1_c1_1{
        color:var(--benbenFontColor7);
    }
    .myCoins_fd1_1_c0_c1_c1{
        color:rgba(53, 208, 134, 1);font-size:32rpx;line-height:38rpx;font-weight:500;
    }
    .myCoins_fd1_1_c0_c1_c0_c1{
        color:#999999;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .myCoins_fd1_1_c0_c1_c0_c0{
        color:#333333;font-size:28rpx;font-weight:500;line-height:40rpx;margin:0rpx 0rpx 16rpx 0rpx;
    }
    .myCoins_fd1_1_c0_c1_c0{
        margin:0rpx 24rpx 0rpx 0rpx;
    }
    .myCoins_fd1_1_c0_c0_c1_c0{
        color:#666666;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .myCoins_fd1_1_c0_c0_c1{
        margin:0rpx 0rpx 0rpx auto;
    }
    .myCoins_fd1_1_c0_c0_c0{
        color:#333333;font-size:32rpx;font-weight:700;line-height:45rpx;
    }
    .myCoins_fd1_1_c0_c0{
        border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
    }
    .myCoins_fd1_1_c0{
        background:var(--benbenbgColor1);border-radius:16rpx 16rpx 16rpx 16rpx;padding:0rpx 24rpx 0rpx 24rpx;
    }
    .myCoins_fd1_1{
        padding:48rpx 32rpx 0rpx 32rpx;
    }
    .myCoins_fd1_0_c1_c0{
        font-size:28rpx;font-weight:400;color:var(--benbenFontColor3);
    }
    .myCoins_fd1_0_c1{
        background:rgba(255, 255, 255, 0.2);border-radius:44rpx 0rpx 0rpx 44rpx;width:139rpx;height:64rpx;position:absolute;right:0rpx;top:48rpx;
    }
    .myCoins_fd1_0_c0_c1{
        color:var(--benbenFontColor3);font-size:28rpx;font-weight:500;line-height:40rpx;
    }
    .myCoins_fd1_0_c0_c0{
        color:var(--benbenFontColor3);font-size:64rpx;font-weight:700;line-height:77rpx;margin:0rpx 0rpx 18rpx 0rpx;
    }
    .myCoins_fd1_0_c0{
        padding:0rpx 0rpx 0rpx 0rpx;
    }
    .myCoins_fd1_0{
        padding:32rpx 24rpx 0rpx 24rpx;position:relative;
    }
    .myCoins_fd2_1{
        width:56rpx;height:56rpx;border-radius:28rpx 28rpx 28rpx 28rpx;
    }
    ::v-deep .myCoins_fd2_0_c1_c0{
        width:480rpx;
    }
    .myCoins_fd2_0_c1{
        touch-action:none;height:330rpx;width:455rpx;
    }
    .myCoins_fd2_0_c0{
        font-size:36rpx;font-weight:700;color:rgba(51, 51, 51, 1);margin:40rpx 0rpx 32rpx 0rpx;
    }
    .myCoins_fd2_0{
        background:var(--benbenbgColor1);width:560rpx;border-radius:24rpx 24rpx 24rpx 24rpx;padding:0rpx 32rpx 45rpx 32rpx;margin:0rpx 0rpx 40rpx 0rpx;background-size:100% auto !important;
    }
</style>